using System;
using Glade;
using Gtk;

namespace DreamPark
{
	public class Screen_Ticket
	{
		private ControleurEntree ctrlEntree;
		private int acces;
		
		[Glade.Widget]
		Label LabelNumT;
		
		[Glade.Widget]
		Label LabelNumP;
		
		public Screen_Ticket (ControleurEntree ctrlEntree, Ticket ticket, int acces) {
			Glade.XML gxml = new Glade.XML (null, "DreamPark.FenetreTicket.glade", "FenetreTicket", null);                    
            gxml.Autoconnect (this);
			
			this.ctrlEntree = ctrlEntree;
			this.acces = acces;
			
			LabelNumT.Text = ticket.NumeroTicket;
			LabelNumP.Text = ticket.Place.NumeroPlace.ToString();
		}
		
		[Glade.Widget]
		Dialog FenetreTicket;
		
		public void BoutonOK_clicked_cb(System.Object obj, EventArgs e) {
			Screen_Accueil fenetreAccueil = new Screen_Accueil(acces, ctrlEntree);
			FenetreTicket.Destroy();
		}
	}
}
